package br.com.pheat.factory;
import java.sql.Connection;
import javax.naming.InitialContext;
import javax.sql.DataSource;

public class Conexao {
	public static Connection getConnection() throws Exception{
		InitialContext context = new InitialContext(); 
		DataSource ds = (DataSource)context.lookup("java:comp/env/connpool");
		return ds.getConnection();
	}
}
